package com.wlc.fanxing.testfanxing;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 英雄
 * @date 2021-07-13 17:10
 */
public class APHero extends Hero{
   String name;
   double hp;

    public APHero() {
    }

    public APHero(String name, double hp) {

        this.name = name;
        this.hp = hp;
    }

    @Override
    public String toString() {
        return "ApHero{" +
                "name='" + name + '\'' +
                ", hp=" + hp +
                '}';
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public double getHp() {
        return hp;
    }

    @Override
    public void setHp(double hp) {
        this.hp = hp;
    }
}
